package com.stylefeng.guns.modular.netcar.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;


@Data
@EqualsAndHashCode(callSuper=true)
@TableName("task_release_reason")
 /**
 * 驾驶员拒绝任务或释放任务原因字典
 *
 * @author sasazaixian
 * @Date 2018-10-23 11:04
 * @TableField(exist = false) 实现属性与数据库字段不一一对应
 */
public class TaskReleaseReason extends Model<TaskReleaseReason> {
    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     * 自动生成后修改成实际的主键 
     */
    @TableId(value = "trr_id", type = IdType.UUID)
    @ApiModelProperty(value = "主键")
    private String trrId;     //ID
    @Override
    protected Serializable pkVal() {
        return this.trrId;
    }
    
    //扩展能查询字段
    @TableField(exist = false) 
    private String key ;
    //开始日期
    @TableField(exist = false)     
    private String sdate;
    //截止日期 
    @TableField(exist = false) 
	private String edate;
    //排序字段
    @TableField(exist = false) 
	private String  sortField ;
	//排序	
	@TableField(exist = false) 
	private String sortOrder;

    @ApiModelProperty(value = "释放原因")
    @TableField("trr_reason")
    private String trrReason;     //释放原因

    @ApiModelProperty(value = "使用状态，1启用，0禁用")
    @TableField("trr_is_alived")
    private String trrIsAlived;     //使用状态，1启用，0禁用

    @ApiModelProperty(value = "创建人")
    @TableField("create_user")
    private String createUser;     //创建人

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;     //创建时间

    @ApiModelProperty(value = "更新人")
    @TableField("update_user")
    private String updateUser;     //更新人

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private Date updateTime;     //更新时间

    @ApiModelProperty(value = "备注")
    @TableField("note")
    private String note;     //备注

}
